package com.itbac.openfeign.product;

import com.itbac.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/4/22 0:13
 */
@FeignClient(value = "service-product")
@RequestMapping("/product")
public interface ProductClient{
    @GetMapping("/getById/{pid}")
    Product getById(@PathVariable("pid") Integer pid);
}
